package com.huaxin.hxmoduleworkorder.mapper;

import com.huaxin.hxmoduleworkorder.models.ScheduledTaskConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScheduledTaskConfigMapper {
    List<ScheduledTaskConfig> listAll();

    ScheduledTaskConfig getByTaskName(@Param("taskName") String taskName);

    int updateEnabled(@Param("taskName") String taskName, @Param("isEnabled") Boolean isEnabled);
}